﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using nERP.Model.So;
using nERP.Model;
using nERP.Model.Bas;

namespace nERP.ViewModel.So.SaleReturnVMs
{
    public partial class SaleReturnTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._SaleReturn._SaleReturnCode")]
        public ExcelPropety SaleReturnCode_Excel = ExcelPropety.CreateProperty<SaleReturn>(x => x.SaleReturnCode);
        [Display(Name = "_Model._SaleReturn._Customer")]
        public ExcelPropety Customer_Excel = ExcelPropety.CreateProperty<SaleReturn>(x => x.CustomerId);
        [Display(Name = "_Model._SaleReturn._InvoicesDate")]
        public ExcelPropety InvoicesDate_Excel = ExcelPropety.CreateProperty<SaleReturn>(x => x.InvoicesDate, true);
        [Display(Name = "_Model._SaleReturn._MakeUser")]
        public ExcelPropety MakeUser_Excel = ExcelPropety.CreateProperty<SaleReturn>(x => x.MakeUserId);
        [Display(Name = "_Model._SaleReturn._SaleOutWarehouse")]
        public ExcelPropety SaleOutWarehouse_Excel = ExcelPropety.CreateProperty<SaleReturn>(x => x.SaleOutWarehouseId);
        [Display(Name = "_Model._SaleReturn._Sale")]
        public ExcelPropety Sale_Excel = ExcelPropety.CreateProperty<SaleReturn>(x => x.SaleId);
        [Display(Name = "_Model._SaleReturn._Remark")]
        public ExcelPropety Remark_Excel = ExcelPropety.CreateProperty<SaleReturn>(x => x.Remark);
        [Display(Name = "_Model._SaleReturn._Status")]
        public ExcelPropety Status_Excel = ExcelPropety.CreateProperty<SaleReturn>(x => x.Status);
        [Display(Name = "_Model._SaleReturn._TotalPrice")]
        public ExcelPropety TotalPrice_Excel = ExcelPropety.CreateProperty<SaleReturn>(x => x.TotalPrice);
        [Display(Name = "_Model._SaleReturn._TotalPrice1")]
        public ExcelPropety TotalPrice1_Excel = ExcelPropety.CreateProperty<SaleReturn>(x => x.TotalPrice1);
        [Display(Name = "_Model._SaleReturn._TotalPrice2")]
        public ExcelPropety TotalPrice2_Excel = ExcelPropety.CreateProperty<SaleReturn>(x => x.TotalPrice2);
        //[Display(Name = "_Model._SaleReturn._CreateTime")]
        //public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<SaleReturn>(x => x.CreateTime, true);
        //[Display(Name = "_Model._SaleReturn._UpdateTime")]
        //public ExcelPropety UpdateTime_Excel = ExcelPropety.CreateProperty<SaleReturn>(x => x.UpdateTime, true);
        //[Display(Name = "_Model._SaleReturn._CreateBy")]
        //public ExcelPropety CreateBy_Excel = ExcelPropety.CreateProperty<SaleReturn>(x => x.CreateBy);
        //[Display(Name = "_Model._SaleReturn._UpdateBy")]
        //public ExcelPropety UpdateBy_Excel = ExcelPropety.CreateProperty<SaleReturn>(x => x.UpdateBy);
        //[Display(Name = "_Model._SaleReturn._IsValid")]
        //public ExcelPropety IsValid_Excel = ExcelPropety.CreateProperty<SaleReturn>(x => x.IsValid);
        //[Display(Name = "_Model._SaleReturn._TenantCode")]
        //public ExcelPropety TenantCode_Excel = ExcelPropety.CreateProperty<SaleReturn>(x => x.TenantCode);

	    protected override void InitVM()
        {
            

        }

    }

    public class SaleReturnImportVM : BaseImportVM<SaleReturnTemplateVM, SaleReturn>
    {
            //import

    }

}